package com.yx.elastic.elasticcm.entity;

import com.alibaba.fastjson.JSONObject;
import com.yx.elastic.elasticcm.orm.EDoc;
import com.yx.elastic.elasticcm.orm.EDocId;
import com.yx.elastic.elasticcm.orm.EIdType;

/**
 * Created by chenzp on 18-8-9.
 */
@EDoc(index = ".analyzer-tokenr-cm",type = "doc")
public class ElasAnalyzerToken {

    /**
     * id
     */
    @EDocId(fieldName = "id",type = EIdType.AUTO)
    public String id;

    /**
     * 名称
     */
    public String name;

    /**
     * 类型
     */
    private String tokenType;

    /**
     * 不同类型的配置参数
     */
    private JSONObject value;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTokenType() {
        return tokenType;
    }

    public void setTokenType(String tokenType) {
        this.tokenType = tokenType;
    }

    public JSONObject getValue() {
        return value;
    }

    public void setValue(JSONObject value) {
        this.value = value;
    }
}
